#ifndef __CONTROLS_CFG
#define __CONTROLS_CFG

#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>

#include "BkList.h"
#include "TB97Ctls.hpp"
#include "IvDictio.hpp"
#include "IvMulti.hpp"
#include "HWindow.h"
#include <ExtCtrls.hpp>

class TControlsConfigForm : public TForm {
  __published:
        HWindow *HWindow1;
        HWindow *wndTools;
        TEdit *edtCaption;
        TLabel *Label1;
        HWindow *HWindow3;
        TToolbarButton97 *btnAdd;
        TToolbarButton97 *btnDel;
        HBkList *lstControls;
        THeaderControl *hdrControls;
        TToolbarButton97 *btnUp;
        TToolbarButton97 *btnDown;
        HBkList *lstToolbar;
        THeaderControl *hdrToolbar;
        TPanel *Panel1;
        TLabel *Label4;
        TLabel *txtDescription;
        TToolbarButton97 *btnOk;
        TToolbarButton97 *ToolbarButton971;
        TIvTranslator *IvTranslator1;
        void __fastcall FormShow(TObject *Sender);
        void __fastcall idRefreshButtons(TObject *Sender);
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall btnAddClick(TObject *Sender);
        void __fastcall btnDelClick(TObject *Sender);
        void __fastcall btnUpClick(TObject *Sender);
        void __fastcall btnDownClick(TObject *Sender);
        void __fastcall btnOkClick(TObject *Sender);
        bool __fastcall idDrawControls(TObject *Sender,
          TCanvas *dc, int Index, THeaderSection *Section,
          const MyRect &Rect, const TOwnerDrawState &State);
  private:
    PGUIToolbar       Toolbar;
    MyValArray<DWORD> Controls;

  public:
    __fastcall TControlsConfigForm(TComponent* Owner, PGUIToolbar tb );

    void RefreshLists( void );
};

#endif
